package com.shr.lease.web.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.shr.lease.model.entity.RoomInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shr.lease.web.admin.vo.room.RoomDetailVo;
import com.shr.lease.web.admin.vo.room.RoomItemVo;
import com.shr.lease.web.admin.vo.room.RoomQueryVo;
import com.shr.lease.web.admin.vo.room.RoomSubmitVo;

/**
* @author liubo
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2023-07-24 15:48:00
*/
public interface RoomInfoService extends IService<RoomInfo> {


    /**
     * @param roomSubmitVo 前端提交的房间信息
     */
    void saveOrUpdateRoomInfo(RoomSubmitVo roomSubmitVo);

    /**
     * @param page
     * @param queryVo 查询条件
     * @return  分页列表
     */
    IPage<RoomItemVo> pageRoomItemByQuery(IPage<RoomItemVo> page, RoomQueryVo queryVo);

    /**
     *
     * @param id 房间id
     * @return 房间详细信息
     */
    RoomDetailVo getDetailById(Long id);

    /**
     * 删除房间信息及其关联信息
     * @param roomId 房间id
     */
    void removeRoomById(Long roomId);
}
